﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KOPLibrary.AutoTemplateDesign
{
    public enum BorderStyle
    {
        Single, Double, Triple, Dotted, Dashed
    }
    

    public class TemplateDesignTable
    {
        public List<TemplateDesignControl> Controls { get; set; }
        public BorderStyle TableBorderStyle { get; set; }        
        public string BorderThickness { get; set; }

        public TemplateDesignControl this[Guid id]
        {
            get
            {
                return Controls.SingleOrDefault(item => item.Id == id);
            }
        }

        public TemplateDesignTable()
        {
            Controls = new List<TemplateDesignControl>();
        }
    }
}
